const hosts = {
  BASE_API: {
    dev: "http://localhost/" || import.meta.env.VITE_APP_BASE_API,
    prd: "http://localhost/" || import.meta.env.VITE_APP_BASE_API,
  },
};

const env = "dev";

const host = Object.keys(hosts)
  .map(function (key) {
    return {
      [key]: hosts[key][env],
    };
  })
  .reduce((pre, cur) => {
    return {
      ...pre,
      ...cur,
    };
  }, {});

export default host;
